import React, { Component } from 'react'
import eventBus from '../eventBus'
export default class A extends Component {
  render() {
    return <div></div>
  }
  componentDidMount() {
    React.hh = this.getData
    eventBus.addListener('getdata', this.getdata)
  }
  getdata = (data) => {
    console.log('eventBus in A', data)
  }
  getData = (data) => {
    console.log('A', data)
  }
}
